package com.matrix.java.chap_03.example;

import java.util.Scanner;

/**
 * AdditionQuiz
 * @since 2021-10-19-13:26
 */
public class Case3_01 {
    public static void main(String[] args) {
        int number1 = (int) (System.currentTimeMillis() % 10);
        int number2 = (int) (System.currentTimeMillis() / 7 % 10);

        //Create a Scanner
        Scanner input = new Scanner(System.in);

        System.out.println(
                "What is " + number1 + " + " + number2 + "?"
        );

        int answer = input.nextInt();
        System.out.println(
                number1 + " + " + number2 + " = " + answer + " is "
                + (number1 + number2 == answer)
        );
    }
}
